package Deom;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-25
 * Time: 20:36
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        //打开电脑
        computer.OpenOn();
        //打开鼠标设置
        computer.Device(new Mouse());
        //打开键盘设置
        computer.Device(new KeyBoard());
        //关闭电脑
        computer.OpenOff();
    }
}
